package com.bdqn.membersystem.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bdqn.membersystem.pojo.UserPointGoods;
import com.bdqn.membersystem.mapper.UserPointGoodsMapper;
import com.bdqn.membersystem.service.UserPointGoodsService;
/**
* 作者：姚岳城
* 日期：2020/4/3 16:53
*/

@Service
public class UserPointGoodsServiceImpl implements UserPointGoodsService{

    @Resource
    private UserPointGoodsMapper userPointGoodsMapper;

    @Override
    public int deleteByPrimaryKey(String pointGoodsId) {
        return userPointGoodsMapper.deleteByPrimaryKey(pointGoodsId);
    }

    @Override
    public int insertSelective(UserPointGoods record) {
        return userPointGoodsMapper.insertSelective(record);
    }

    @Override
    public UserPointGoods selectByPrimaryKey(String pointGoodsId) {
        return userPointGoodsMapper.selectByPrimaryKey(pointGoodsId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserPointGoods record) {
        return userPointGoodsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateBatch(List<UserPointGoods> list) {
        return userPointGoodsMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<UserPointGoods> list) {
        return userPointGoodsMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(UserPointGoods record) {
        return userPointGoodsMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(UserPointGoods record) {
        return userPointGoodsMapper.insertOrUpdateSelective(record);
    }

}
